package org.atlas.framework.util;

import org.apache.commons.collections4.MapUtils;

import java.util.Map;

/**
 * map工具类
 *
 * Created by suxinjie on 2017/3/5.
 */
public class MapUtil {

    /**
     * 判断map是否非空
     */
    public static boolean isNotEmpty(Map<?, ?> map) {
        return MapUtils.isNotEmpty(map);
    }

    /**
     * 判断map是否为空
     */
    public static boolean isEmpty(Map<?, ?> map) {
        return MapUtils.isEmpty(map);
    }
}
